package lumingweihua.future.cn.lumingweihua;

import android.view.View;

import lumingweihua.future.cn.baselibgxh.base.BaseActivity;
import lumingweihua.future.cn.baselibgxh.base.MyApplication;
import lumingweihua.future.cn.baselibgxh.utils.SharedPreference;
import lumingweihua.future.cn.lumingweihua.guide.FirstGuideActivity;
import lumingweihua.future.cn.lumingweihua.person.LoginActivity;

public class SplashActivity extends BaseActivity {

	@Override
	protected void initView() {
		// TODO Auto-generated method stub
		setContentView(R.layout.activity_splash);
		
		new Thread(new Runnable() {

			@Override
			public void run() {
				// TODO Auto-generated method stub
				try {
					Thread.sleep(1500);

//					if(SharedPreference.getBoolean(context,"isfirst",true)){
//						jumpToNextActivity(FirstGuideActivity.class, true);
//					}else{
						jumpToNextActivity(MyApplication.getInstance().isUserLogin()?MainActivity.class:LoginActivity.class, true);
//					}

				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}).start();
	}

	@Override
	protected void initData() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processClick(View v) {
		// TODO Auto-generated method stub

	}

}
